﻿using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nature.Core.DDD.DomainEvent
{
    public class DomainEventHandlerFac : IDomainEventHandlerFac
    {
        public IEnumerable<IDomainEventHandler<T>> GetDomainEventHandlerFor<T>() where T : IDomainEvent
        {
            
            return ObjectFactory.GetAllInstances<IDomainEventHandler<T>>();
        }
    }
}
